package org.chen.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 数字人配置项实体
 */
@Data
@TableName("avatar_config_item")
public class AvatarConfigItem {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    
    @TableField("config_id")
    private String configId;
    
    @TableField("avatar_id")
    private String avatarId;
    
    @TableField("voice_id")
    private String voiceId;
    
    @TableField("x_offset")
    @JsonProperty("xOffset")
    private Double xOffset;
    
    @TableField("y_offset")
    @JsonProperty("yOffset")
    private Double yOffset;
    
    @TableField("scale")
    private Double scale;
    
    @TableField("item_order")
    private Integer itemOrder;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}